{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\vgonz\Dropbox\Pitt\OneDrive for Business\Dissertation - Vale\Paper 2 - Political-Economic Polarization\Replication\Log\4_5_Figures_Appendix_StockRobots.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}29 Aug 2024, 15:45:52

{com}. do "C:\Users\vgonz\Dropbox\Pitt\OneDrive for Business\Dissertation - Vale\Paper 2 - Political-Economic Polarization\Replication\Do\4_5_Figures_Appendix_StockRobots.do"
{txt}
{com}. *****************************************************************************
. *       Figure Additional Context Stock Robot from Acemoglu & Restrepo      *
. *                                                                                                                                                       *                       
. * Author:                       Valentina Gonzalez Rostani                                                      *
. * Contact:                      mag384@pitt.edu                                                                 *
. * Date:                         August 9 2024                                                                                   *
. * Version:                      Stata 17                                                                                                *                                                                          
. *                                                                                                                                                       *
. *****************************************************************************
. /*
> This do-file:
> - Creates Figure A1 using data from Acemoglu & Restrepo. 
> 
> Input:
> - Data\reproducingacemoglu.csv
> 
> Output:
> - Figure A1: Stock of robots per thousand of workers base 1993 [Figures\number_robots.pdf]
> 
> */
. 
. *Defining Directory
. cd "C:\Users\vgonz\Dropbox\Pitt\OneDrive for Business\Dissertation - Vale\Paper 2 - Political-Economic Polarization\Replication" 
{res}C:\Users\vgonz\Dropbox\Pitt\OneDrive for Business\Dissertation - Vale\Paper 2 - Political-Economic Polarization\Replication
{txt}
{com}.  
.  import delimited "Data\reproducingacemoglu.csv", clear
{res}{txt}(encoding automatically selected: ISO-8859-1)
{text}(5 vars, 22 obs)

{com}. 
.  
.  
. ******************************************************************************
. * Graph setting
. ******************************************************************************
. * Graph style 
. {c -(}
. grstyle clear
. set scheme s2color
. grstyle init
{res}{com}. grstyle set plain, box
. grstyle color background white
. grstyle set color dknavy
{res}{com}. grstyle yesno draw_major_hgrid yes
. grstyle yesno draw_major_ygrid yes
. grstyle color major_grid gs8
. grstyle linepattern major_grid dot
. grstyle color ci_area gs12%50
.  graph set window fontface "Georgia"
. {c )-}
{txt}
{com}.  //Figure A1: Stock of robots per thousand of workers base 1993
.  {c -(}
. twoway ///
>     (line germany year, lcolor(blue) lwidth(medium) lpattern(solid)) ///
>     (line denmarkfinlandfranceitalyandswed year, lcolor(gs10) lwidth(medium) lpattern(longdash)) ///
>     (line unitedstates year, lcolor(blue) lwidth(medium) lpattern(shortdash)) ///
>     (line norwayspainanduk year, lcolor(blue) lwidth(medium) lpattern(dash_dot)), ///
>     xtitle("Year") ytitle("Stock of robots per thousand of workers") ///
>     legend(order(1 "Germany" 2 "Denmark, Finland, France, Italy and Sweden" 3 "United States" 4 "Norway, Spain, and UK") position(6) size(small)) ///
>     yscale(range(0 6)) xscale(range(1993 2014)) legend(size(small))
{res}{com}. 
. 
. graph export "Figure\number_robots.pdf", as(pdf) replace
{txt}{p 0 4 2}
file {bf}
Figure\number_robots.pdf{rm}
saved as
PDF
format
{p_end}
{com}. {c )-}
{txt}
{com}. 
{txt}end of do-file

{com}. exit, clear
